package com.crm.service.impl;

import com.crm.dao.LinkNoteDao;
import com.crm.entity.LinkNote;
import com.crm.service.LinkNoteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * TODO 例...学生模型类，存储学生信息。
 *
 * @author 高旭
 * @date 2020-12-25
 */
@Service("linkNoteService")
public class LinkNoteServiceImpl implements LinkNoteService {

    @Resource
    private LinkNoteDao linkNoteDao;

    @Override
    public List<LinkNote> find(Map<String, Object> map) {
        return linkNoteDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return linkNoteDao.getTotal(map);
    }

    @Override
    public int add(LinkNote linkNote) {
        return linkNoteDao.add(linkNote);
    }

    @Override
    public int update(LinkNote linkNote) {
        return linkNoteDao.update(linkNote);
    }

    @Override
    public int delete(Integer id) {
        return linkNoteDao.delete(id);
    }
}
